
//对外暴露配置常量路由
export const constantarouters = [
  {
    path: '/',
    name: 'home',
    component: () => import('@/views/HomeView.vue'),
    redirect: "/index",
    meta: {
      title: "首页",
      hidden: false,
      icon: 'HomeFilled',
    },
    children: [
      {
        path: '/index',
        name: 'index',
        component: () => import('@/views/index.vue'),
        meta: {
          hidden: true,
          acticemenu: '/',
        },
      },
    ]
  },
  {
    path: '/info',
    name: 'info',
    component: () => import('@/views/HomeView.vue'),
    redirect: "/index/info",
    meta: {
      title: "消息",
      hidden: false,
      icon: 'ChatDotSquare'
    },
    children: [
      {
        path: '/index/info',
        name: 'index/info',
        component: () => import('@/views/info/index.vue'),
        meta: {
          hidden: true,
          acticemenu: '/info'
        }
      }
    ]
  },
  {
    path: '/user',
    name: 'user',
    component: () => import('@/views/HomeView.vue'),
    redirect: "/index/user",
    meta: {
      title: '个人主页',
      hidden: false,
      icon: 'Avatar'
    },
    children: [
      {
        path: '/index/user',
      name: 'index/user',
      component: () => import('@/views/user/index.vue'),
        meta: {
          hidden: true,
          acticemenu: '/user'
        }
      }
    ]
  },
  {
    path: '/user/verfiy',
    name: 'verfiy',
    component: () => import('@/views/user/verify.vue'),
    meta: {
      title: '身份验证',
      hidden: true,
    }
  },
  {
    path: '/register',
    name: 'register',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '@/views/RegisterV.vue'),
    meta: {
      title: "注册",
      hidden: true,
    },
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/loginTo.vue'),
    meta: {
      title: "登陆",
      hidden: true,
    },
  },

  {
    path: '/treat',
    name: 'treat',
    component: () => import('@/views/HomeView.vue'),
    redirect: "/index/treat",
    meta: {
      title: '前往治疗',
      hidden: true,
      icon: 'Setting'
    },
    children: [
      {
        path: '/index/treat',
        name: 'index/treat',
        component: () => import('@/views/treat/index.vue'),
        meta: {
          hidden: true,
          acticemenu:'/treat',
        },
      }]
  },
  {
    path: '/assess',
    name: 'assess',
    component: () => import('@/views/HomeView.vue'),
    redirect: "/index/assess",
    meta: {
      title: '前往评定',
      hidden: true,
      icon: 'Setting'
    },
    children: [
      {
        path: '/index/assess',
        name: 'index/assess',
        component: () => import('@/views/assess/index.vue'),
        meta: {
          hidden: true,
          acticemenu:'/assess',
        },
      }]
  },

]
